# Michael Depuy
# depuym@onid.orst.edu
# CS311-400
# Homework 1


#
#  $RCSfile$
#  $Revision$
#  $Author$
#  $Date$
#  $Log$
#

CC=gcc
DEBUG=-g
CFLAGS=$(DEBUG) -Wall -lm
PROGS=check_vowel helloworld odd_even read_file sieve


all: $(PROGS)


check_vowel: check_vowel.o
	$(CC) $(CFLAGS) -o check_vowel check_vowel.o

check_vowel.o: check_vowel.c
	$(CC) $(CFLAGS) -c check_vowel.c

helloworld: helloworld.o
	$(CC) $(CFLAGS) -o helloworld helloworld.o

helloworld.o: helloworld.c
	$(CC) $(CFLAGS) -c helloworld.c

odd_even: odd_even.o
	$(CC) $(CFLAGS) -o odd_even odd_even.o

odd_even.o: odd_even.c
	$(CC) $(CFLAGS) -c odd_even.c

read_file: read_file.o
	$(CC) $(CFLAGS) -o read_file read_file.c read_file.h

sieve.o: sieve.c
	$(CC) $(CFLAGS) -c sieve.c

sieve: sieve.o
	$(CC) $(CFLAGS) -o sieve sieve.o

clean:
	rm -f $(PROGS) *.o *~ *.h.gch

